package area

import (
	"Project/global"
)

type Area struct {
	global.GVA_MODEL
	AreaID int64   `json:"area_id" gorm:"unique;comment:区县唯一标识"`
	CityID int64   `json:"city_id" gorm:"column:city_id;default:1;type:INT UNSIGNED;comment:市区唯一标识"`
	Name   string  `json:"name" gorm:"type:VARCHAR(10);comment:区县名"`
}

func (Area) TableName() string  {
	return "area"
}